import * as echarts from "echarts";
import type { App } from "vue";

/**
 * 按需引入 echarts 的图表和组件
 */
export const useEcharts = (app: App) => {
  // 挂载到全局，方便组件内部直接使用
  app.config.globalProperties.$echarts = echarts;
  return app;
};
